<%@ page language="java" contentType="text/html; charset=UTF-8"
         pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
<head>
    <title>查看</title>
    <meta charset="utf-8"/>
    <%@ include file="/commons/global.jsp" %>
    <link rel="stylesheet" href="${ctxPath}/static/editormd/css/editormd.preview.min.css">
    <script src="${ctxPath}/static/editormd/examples/js/jquery.min.js"></script>
    <script src="${ctxPath}/static/editormd/lib/marked.min.js"></script>
    <script src="${ctxPath}/static/editormd/lib/prettify.min.js"></script>
    <script src="${ctxPath}/static/editormd/lib/raphael.min.js"></script>
    <script src="${ctxPath}/static/editormd/lib/underscore.min.js"></script>
    <script src="${ctxPath}/static/editormd/lib/sequence-diagram.min.js"></script>
    <script src="${ctxPath}/static/editormd/lib/flowchart.min.js"></script>
    <script src="${ctxPath}/static/editormd/lib/jquery.flowchart.min.js"></script>
    <script src="${ctxPath}/static/editormd/editormd.js"></script>
    <script>
        $(function(){
            //转换开始,第一个参数是上面的div的id
            editormd.markdownToHTML("testEditorMdview", {
                htmlDecode: "style,script,iframe", //可以过滤标签解码
                emoji: true,
                taskList:true,
                tex: true,               // 默认不解析
                flowChart:true,         // 默认不解析
                sequenceDiagram:true,  // 默认不解析
            });
        })
    </script>
</head>
<body>
<div id="testEditorMdview">
    <textarea id="appendTest" style="display:none;">${content}</textarea>
</div>
</body>
</html>